package com.yunxiao.cloud.common.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: RedisKeyPrefixProperties
 * @author: lintiangang
 * @date: 2020/8/24 8:50
 * @version: V1.0
 **/
@Component
@ConfigurationProperties(prefix = "spring.redis.prefix")
public class RedisKeyPrefixProperties {

    private Boolean enable = Boolean.TRUE;
    private String key;

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
